package inherit;

/**
 * @author yuisama
 * @date 2022/09/09 21:35
 * 父类Animal
 **/
public class Animal {
    String name;
    int age;
    double weight;

    void sleep() {
        System.out.println(this.name + "正在睡觉");
    }
    void eat(String food) {
        System.out.println(this.name + "正在吃" + food);
    }
}